
function fn() {
    let i = 0
    console.log(foo(i));
    function foo(a) {
        if (i) return i
        i = new Date()
        return i
    }
}
fn()
fn()
fn()